<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const arr = [
        {
            "productId": "23",
            "productName": "D系列",
            "productDescribe": "头大声音好",
            "mode": 3,
            "lowLevelAgentPrice": 500,
            "midLevelAgentPrice": 700,
            "highLevelAgentPrice": 851,
            "timeLength": 1,
            "updatedTime": "2021-11-04 16:39:34",
            "sets": 10,
            "proxyLevel": 3,
            "appList": [
                {
                    "id": "38",
                    "appId": "52",
                    "appName": "云呼叫中心",
                    "paramType": 1,
                    "lowLevelPrice": 500,
                    "midLevelPrice": 400,
                    "highLevelPrice": 300,
                    "marketPrice": 16800,
                    "num": 10,
                    "minutes": 0,
                    "userNumber": 20,
                    "combineServiceUserNumberId": 0
                },
                {
                    "id": "38",
                    "appId": "52",
                    "appName": "云呼叫中心",
                    "paramType": 1,
                    "lowLevelPrice": 500,
                    "midLevelPrice": 400,
                    "highLevelPrice": 300,
                    "marketPrice": 16800,
                    "num": 10,
                    "minutes": 0,
                    "userNumber": 20,
                    "combineServiceUserNumberId": 0
                },
            ]
        },
        {
            "productId": "24",
            "productName": "E系列",
            "productDescribe": "这是一条产品描述",
            "mode": 2,
            "lowLevelAgentPrice": 100,
            "midLevelAgentPrice": 200,
            "highLevelAgentPrice": 300,
            "timeLength": 1,
            "updatedTime": "2021-11-06 11:31:02",
            "sets": 0,
            "proxyLevel": 3,
            "appList": [
                {
                    "id": "38",
                    "appId": "52",
                    "appName": "云呼叫中心",
                    "paramType": 1,
                    "lowLevelPrice": 500,
                    "midLevelPrice": 400,
                    "highLevelPrice": 300,
                    "marketPrice": 16800,
                    "num": 0,
                    "minutes": 0,
                    "userNumber": 20,
                    "combineServiceUserNumberId": 0
                }
            ]
        }
    ]

    arr.forEach(item => {
        if (Array.isArray(item?.appList) && item?.appList.length) {
            item.appList[0].length = item.appList.length
        }
    })
    console.log(arr);
</script>
</body>
</html>
